import request from '@/utils/request'

// 查询数据对接列表
export function listDataLink(query) {
  return request({
    url: '/link/dataLink/list',
    method: 'get',
    params: query
  })
}

// 查询数据对接详细
export function getDataLink(id) {
  return request({
    url: '/link/dataLink/' + id,
    method: 'get'
  })
}

// 保存数据对接
export function saveDataLink(data) {
  return request({
    url: '/link/dataLink/save',
    method: 'post',
    data: data
  })
}

// 删除数据对接
export function delDataLink(id) {
  return request({
    url: '/link/dataLink/' + id,
    method: 'delete'
  })
}

// 导出数据对接
export function exportDataLink(query) {
  return request({
    url: '/link/dataLink/export',
    method: 'get',
    params: query
  })
}
